package cn.hp.service.customer;

import cn.hp.pojo.Customer;
import cn.hp.pojo.Customer1;
import cn.hp.util.ResponseData;

import java.util.List;

// service接口
public interface CustomerService {

    // 发送短信
    String smsSending(String phoneNumber);
    // 缓存验证码
    ResponseData cacheVerificationCode(String phoneNumber, String code);

    ResponseData login(String phoneNumber, String code);

//    ResponseData findAll();

    ResponseData findAllByPage(int page, int limit, String phoneNumber);

    ResponseData deleteCustomer(int id);

    ResponseData updateShow(int id);

    ResponseData update(Customer1 customer);

    List<Customer> findAllByRegisterTime(String s);
}
